package com.menggudf.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="medicalDBDetail")
public class MedicalDBDetail implements Serializable{

    /**
     * 
     */
    private static final long serialVersionUID = 246063680277139624L;

    private int id;
    private MedicalDB medicalDB;
    
    private double minDose; //double DEFAULT NULL COMMENT '最小值剂量',
    private double maxDose; //double DEFAULT NULL COMMENT '最大值剂量',
    private double unitAge; //double DEFAULT NULL COMMENT '单位年龄剂量',
    private int startAge; //int(11) DEFAULT NULL COMMENT '开始年龄(天)',
    private int endAge; //int(11) DEFAULT NULL COMMENT '结束年龄(天)',
    private double unitWeight; //double DEFAULT NULL COMMENT '单位重量剂量',
    private double startWeight; //double DEFAULT NULL COMMENT '开始重量',
    private double endWeight; //double DEFAULT NULL COMMENT '结束重量',
    private double multiple; //double DEFAULT NULL COMMENT '单位倍数',
    private String specialUsage; //text COMMENT '特殊用法',
    
    @Id
    @Column(name="id",unique=true,nullable=false)
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "medicalId", nullable = false)
    public MedicalDB getMedicalDB() {
        return medicalDB;
    }
    public void setMedicalDB(MedicalDB medicalDB) {
        this.medicalDB = medicalDB;
    }
    
    @Column(name="minDose")
    public double getMinDose() {
        return minDose;
    }
    public void setMinDose(double minDose) {
        this.minDose = minDose;
    }
    
    @Column(name="maxDose")
    public double getMaxDose() {
        return maxDose;
    }
    public void setMaxDose(double maxDose) {
        this.maxDose = maxDose;
    }
    
    @Column(name="unitAge")
    public double getUnitAge() {
        return unitAge;
    }
    public void setUnitAge(double unitAge) {
        this.unitAge = unitAge;
    }
    
    @Column(name="startAge")
    public int getStartAge() {
        return startAge;
    }
    public void setStartAge(int startAge) {
        this.startAge = startAge;
    }
    
    @Column(name="endAge")
    public int getEndAge() {
        return endAge;
    }
    public void setEndAge(int endAge) {
        this.endAge = endAge;
    }
    
    @Column(name="unitWeight")
    public double getUnitWeight() {
        return unitWeight;
    }
    public void setUnitWeight(double unitWeight) {
        this.unitWeight = unitWeight;
    }
    
    @Column(name="startWeight")
    public double getStartWeight() {
        return startWeight;
    }
    public void setStartWeight(double startWeight) {
        this.startWeight = startWeight;
    }
    
    @Column(name="endWeight")
    public double getEndWeight() {
        return endWeight;
    }
    public void setEndWeight(double endWeight) {
        this.endWeight = endWeight;
    }
    
    @Column(name="multiple")
    public double getMultiple() {
        return multiple;
    }
    public void setMultiple(double multiple) {
        this.multiple = multiple;
    }
    
    @Column(name="specialUsage")
    public String getSpecialUsage() {
        return specialUsage;
    }
    public void setSpecialUsage(String specialUsage) {
        this.specialUsage = specialUsage;
    }
    
}
